package com.sumainfor.pc.market.service.gmio;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.dao.gmio.PactGmioMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 运营部调用
 * <p>
 *
 * @author: zc
 * @create: 2019-11-14 16:15
 **/
@Service
public class PactGmioService implements Serializable {
    @Autowired
    PactGmioMapper pactGmioMapper;

    /**
     * 根据房源详表查询是否存在智能电表
     * @param params
     * @return
     */
    public JsonResult getHouInfoPayment (Map<String,Object> params){
    JsonResult result = new JsonResult();
    return result.put(pactGmioMapper.getHouInfoPayment(params));
    }

    /**
     * 根据房源编号查询该房源下的房间编号
     * @param params
     * @return
     */
    public List<Map<String,Object>> getHouInfoNum(Map<String,Object> params){
        return pactGmioMapper.getHouInfoNum(params);
    }

    /**
     * 根据房源编号查询该房源下的在租合同
     * @param params
     * @return
     */
    public List<Map<String,Object>> getHouPact(Map<String,Object> params){
        return pactGmioMapper.getHouPact(params);

    }

    /**
     * 查询整租合租.智能非智能的在租中的房源
     * @param params
     * @return
     */
    public List<Map<String,Object>> getPactNumHou(Map<String,Object> params){
        return pactGmioMapper.getPactNumHou(params);
    }

    /**
     * 查询整租合租,智能非智能的在租中的房源总数
     * @param params
     * @return
     */
    public Integer getPactNumHouCount(Map<String,Object> params){
        return pactGmioMapper.getPactNumHouCount(params);
    }

    /**
     * 秘书查询抄表房源
     * @param params
     * @return
     */
    public List<Map<String,Object>> getHouId(Map<String,Object> params){
        return pactGmioMapper.getHouId(params);
    }

    /**
     * 秘书查询抄表房源总数
     */
    public Integer getHouIdCount(Map<String,Object> params){
        return pactGmioMapper.getHouIdCount(params);
    }


    public Map<String,Object> getInfoStatus(Map<String,Object> params){
        return pactGmioMapper.getInfoStatus(params);
    }

    /**
     * 查询房源归属公司
     * @param params
     * @return
     */
    public Map<String,Object> getCorId(Map<String,Object> params){
        return pactGmioMapper.getCorId(params);
    }

    /**
     * 在租租客列表
     * @param params
     * @return
     */
    public List<Map<String,Object>> getTenHousList(Map<String,Object> params){
        return pactGmioMapper.getTenHousList(params);
    }

    /**
     * 数量
     * @param params
     * @return
     */
    public Integer getTenHousListCount(Map<String,Object> params){
        return pactGmioMapper.getTenHousListCount(params);
    }



}
